from socket import *

addr = ("127.0.0.1", 22222)
BUFFER_SIZE = 1024
conn = socket(AF_INET, SOCK_STREAM)
conn.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
conn.connect(addr)

#print(conn.recv(BUFFER_SIZE))
while True:
    print(conn.recv(BUFFER_SIZE))
